package co.yixiang.modules.shop.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author fanfan
 * @date 2022-02-25 16:10
 */
@Data
@TableName("yx_store_feedback")
public class YxStoreFeedback implements Serializable {

    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 分店id
     */
    private Integer createStore;

    /**
     * 处理时间
     */
    private Date disposeTime;

    /**
     * 处理人
     */
    private String disposeBy;

    /**
     * 处理内容
     */
    private String content;

    /**
     * 处理内容
     */
    private String disposeContent;

    /**
     * 是否已处理
     */
    private Boolean isDispose;


    @TableField(exist = false)
    private String createStoreName;

    public void copy(YxStoreFeedback source) {
        BeanUtil.copyProperties(source, this, CopyOptions.create().setIgnoreNullValue(true));
    }
}